// 工资
import Layout from '@/layout'

// layout-第一层!!  组件位于layout的二级路由里面
const salaryRouter = {
    path:'/salarys',
    name:'salarys',
    component:Layout,
    children:[
        {
        path:'',  //什么都不写,默认是二级路由直接看component默认的index.vue
        component: () => import('@/views/salarys'),
        name:'salarys',
         // 路由元信息  存储数据的对象信息
         meta:{
            title:'工资管理',  //左侧菜单名称
            icon:'money'  //左侧图标
         }
    },
     {
      path: 'setting',
      component: () => import('@/views/salarys/setting'),
      name: 'salarysSetting',
      hidden: true,
      meta: {
        title: '设置'
      }
    },
    {
      path: 'details/:yearMonth/:id',
      component: () => import('@/views/salarys/detail'),
      name: 'salarysDetails',
      hidden: true,
      meta: {
        title: '详情'
      }
    },
    {
      path: 'historicalArchiving',
      component: () => import('@/views/salarys/historical'),
      name: 'salarysHistorical',
      hidden: true,
      meta: {
        title: '历史归档'
      }
    },
    {
      path: 'monthStatement',
      component: () => import('@/views/salarys/month'),
      name: 'salarysMonthStatement',
      hidden: true,
      meta: {
        title: '月报表'
      }
    }
]
}
export default salaryRouter